#! /bin/sh -vx
# $Id$
# Copyright 2017-2018 Karl Berry <tex-live@tug.org>#
# Copyright 2015 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_eptex=$BinDir/eptex$ExeExt

LC_ALL=C; export LC_ALL;  LANGUAGE=C; export LANGUAGE

TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
TEXINPUTS=.; export TEXINPUTS

FILE=pdfprimitive-eptex

# get same filename in log
rm -f $FILE.*
$LN_S $srcdir/eptexdir/tests/pdfprimitive-test.tex $FILE.tex

$_eptex -ini -etex $FILE && exit 1

sed 1d $FILE.log >$FILE.out

diff $srcdir/eptexdir/tests/$FILE.log $FILE.out || exit 1

